package ch08;

class ExceptionEx10 {
	public static void main(String args[]) {
		System.out.println(1);
		System.out.println(2);
		try {
			System.out.println(3);
			System.out.println(0/0);
			System.out.println(4);
		} catch (ArithmeticException ae)	{
			ae.printStackTrace();
			System.out.println("error message: " + ae.getMessage());
		}
		System.out.println(6);
	}
}
/*
1
2
3
java.lang.ArithmeticException: / by zero
	at ch08.ExceptionEx11.main(ExceptionEx11.java:8)
error message: / by zero
6
*/